﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:my="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:TheOliver_Controls="clr-namespace:TheOliver.Controls" x:Class="StarterWebViewer.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="40"/>
    		<RowDefinition/>
    		<RowDefinition Height="39.333"/>
    	</Grid.RowDefinitions>
    	<i:Interaction.Triggers>
    		<i:EventTrigger EventName="MouseLeftButtonDown">
    			<TheOliver_Controls:CheckForUpdateBehavior/>
    		</i:EventTrigger>
    	</i:Interaction.Triggers>
        <Grid
            x:Name="_pivotGrid" Margin="0,1,0,0" Grid.Row="1" >
        	<Grid.RowDefinitions>
        		<RowDefinition/>
        	</Grid.RowDefinitions>
        </Grid>
        <Grid x:Name="_header">
        	<Image x:Name="_background" Margin="0" Source="Assets/header_bg.png" Stretch="Fill" VerticalAlignment="Top"/>
        	<Image x:Name="_msdnLogo"
        		Source="Assets/msdn_h_rgb.png" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,8,0" Height="28"
                MouseLeftButtonUp="_msdnLogo_MouseLeftButtonUp" />
        	<Image x:Name="_windowsLogo" HorizontalAlignment="Left" Margin="8,0,0,0" Source="Assets/windows_logo.png" VerticalAlignment="Center" Height="28"
                MouseLeftButtonUp="_windowsLogo_MouseLeftButtonUp" />
        	<Rectangle VerticalAlignment="Bottom" Height="10" Margin="0,0,0,-10">
        		<Rectangle.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="Black" Offset="0"/>
        				<GradientStop Color="Transparent" Offset="1"/>
        			</LinearGradientBrush>
        		</Rectangle.Fill>
        	</Rectangle>
        </Grid>
        <Grid x:Name="_footer" Grid.RowSpan="3" Grid.Row="2">
        	<Image x:Name="_background1" Margin="0" Source="Assets/header_bg.png" Stretch="Fill" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<CompositeTransform Rotation="-180"/>
        		</Image.RenderTransform>
        	</Image>
            <Button
                Content="Download Demos"
                HorizontalAlignment="Right"
                VerticalAlignment="Bottom"
                Click="Button_Click" />
        	<Image Margin="4,4,0,4" Source="Assets/build_vs2010.png" HorizontalAlignment="Left" VerticalAlignment="Center"/>
        	<Rectangle VerticalAlignment="Top" Height="10" Margin="0,-10,0,0">
        		<Rectangle.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="Black" Offset="1"/>
        				<GradientStop Color="Transparent"/>
        			</LinearGradientBrush>
        		</Rectangle.Fill>
        	</Rectangle>
        </Grid>
        <Rectangle Grid.Row="1" HorizontalAlignment="Left" Width="10">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.95,0.5" StartPoint="-0.05,0.5">
        			<GradientStop Color="Black" Offset="0"/>
        			<GradientStop Color="Transparent" Offset="1"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Row="1" HorizontalAlignment="Right" Width="10" Margin="0">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="1.45,0.5" StartPoint="-0.15,0.5">
        			<GradientStop Color="Black" Offset="1"/>
        			<GradientStop Color="Transparent"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Button
            Content="Fullscreen"
            Height="23"
            Margin="10,10,0,0"
            Name="_fullscreen"
            VerticalAlignment="Top"
            HorizontalAlignment="Center"
            Click="_fullscreen_Click"
            />
        <!--
        <Button Visibility="Collapsed" Content="Lokal installieren" HorizontalAlignment="Center" Margin="0,0,0,8" d:LayoutOverrides="Height" VerticalAlignment="Bottom" Grid.Row="2">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<TheOliver_Controls:InstallOutOfBrowserBehavior/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
        -->
    </Grid>
</UserControl>
